#include<iostream>



class Complex
{
    public:
    Complex():real(0),vir(0){}   //无参构造
    Complex(int real,int vir):real(real),vir(vir){}   //有参构造

    void show()
    {
        std::cout<<real<<"+"<<vir<<"i"<<std::endl;
    }
    private:

    int real;   //实部
    int vir;    //虚部
};

int main()
{
    Complex c (1,2);
    c.show();
    

    return 0;
}


